package com.oak.broke.model.vip.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.oak.broke.model.vip.dto.VipApplyDTO;
import com.oak.broke.model.vip.entity.VipApplyEntity;
import com.oak.broke.model.vip.vo.VipApplyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员申请
 * 
 * @author guoxy
 * @email broke@gmail.com
 * @date 2023-05-18 10:37:20
 */
@Mapper
public interface VipApplyDao extends BaseMapper<VipApplyEntity> {

    /**
     * 会员申请
     * @param dto
     * @return
     */
    IPage<VipApplyVO> vipApplyList(IPage<VipApplyVO> page,@Param("dto") VipApplyDTO dto);

    /**
     * 根据机构/用户关系id查询申请详情
     *
     * @return
     */
    List<VipApplyVO> vipApplyUserList(@Param("userRelationCode") String userRelationCode, @Param("vipUserType")String vipUserType);
}
